package kr.hkit.androidcomplete03.ch20;

import kr.hkit.androidcomplete03.R;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class WordList extends Activity implements WordListFragment.OnWordChangedListener{

	static String[] DES;
	
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.wordlist);
		
		DES = getResources().getStringArray(R.array.desc);
	}
	
	@Override
	public void onWordChanged(int index) {
		TextView worddesc = (TextView)findViewById(R.id.worddesc);
		worddesc.setText(DES[index]);
	}

}
